import com.jfinal.json.FastJson;
import com.jfinal.json.Json;
import com.yaowk.common.kit.YunbaKit;
import com.yaowk.common.model.YunbaRequest;
import com.yaowk.common.model.YunbaResponse;
import org.junit.Test;

/**
 * @authc yaowk
 * 2017/5/9
 */
public class Main {

    @Test
    public void JsonTest() {
        YunbaRequest yunbaRequest = new YunbaRequest();
        yunbaRequest.setThirdContent("123").setThirdTitle("321");
        String json = Json.getJson().toJson(yunbaRequest);
        System.out.println(json);
    }

    @Test
    public void yunbaTest() {
        YunbaResponse yunbaResponse = YunbaKit.push("测试测试");
        System.out.println(FastJson.getJson().toJson(yunbaResponse));
    }
}
